/*
 * @Description:
 * @Author:Huang Xin Ming
 * @Date:2024-11-06 09:56:08
 * @LastEditors:Huang Xin Ming
 * @LastEditTime:2024-11-11 13:49:14
 */
import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";

export default defineUniPages({
	// 你也可以定义 pages 字段，它具有最高的优先级。
	pages: [
		{
			path: "pages/index/index",
			style: {
				navigationBarTitleText: "首页",
			},
		},
		{
			path: "pages/trip/index",
			style: {
				navigationBarTitleText: "行程",
			},
			needLogin: true
		},
		{
			path: "pages/mine/index",
			style: {
				navigationBarTitleText: "我的",
			},
		},
		{
			path: "pages/login/index",
			style: {
				navigationBarTitleText: "登录"
			}
		}
	],
	globalStyle: {
		navigationBarTextStyle: "black",
		navigationBarTitleText: "russ-uniapp",
		navigationBarBackgroundColor: "#F8F8F8",
		backgroundColor: "#F8F8F8",
	},
	tabBar: {
		color: '#999999',
		selectedColor: '#1a5f8e',
		backgroundColor: '#fefefe',
		borderStyle: 'black',
		list: [
		  {
			iconPath: 'static/tabbar/tabbar_home.png',
			selectedIconPath: 'static/tabbar/tabbar_home.png',
			pagePath: 'pages/index/index',
			text: '首页',
		  },
		  {
			iconPath: 'static/tabbar/tabbar_mine.png',
			selectedIconPath: 'static/tabbar/tabbar_mine.png',
			pagePath: 'pages/mine/index',
			text: '我的',
		  },
		],
	  },
});
